/**
    {
    "jGoMMMJ" : "233",
    "Ya4sXiI" : null,
    "1f9Sxo" : null,
    "lK2nM94S9" : "2025-10-14 19:54:38",
    "HCGnojv" : "#7270d7",
    "here" : 200,
    "max_amount" : "2000.0000",
    "min_amount" : "2000.0000",
    "terms" : [ "7" ],
    "yeared" : 1,
    "loan_mode" : 0,
    "objects" : "",
    "belated" : "ios://Dali.ngPe.ra/aisle?already=1"
    }
 */
class DnpHomeRolledDataModel {
  String? jGoMMMJ;
  String? ya4sXiI;
  String? f9Sxo;
  String? lK2nM94S9;
  String? hCGnojv;
  int? here;
  String? maxAmount;
  String? minAmount;
  List<String>? terms;
  int? yeared;
  int? loanMode;
  String? objects;
  String? belated;

  DnpHomeRolledDataModel({
    this.jGoMMMJ,
    this.ya4sXiI,
    this.f9Sxo,
    this.lK2nM94S9,
    this.hCGnojv,
    this.here,
    this.maxAmount,
    this.minAmount,
    this.terms,
    this.yeared,
    this.loanMode,
    this.objects,
    this.belated,
  });

  factory DnpHomeRolledDataModel.fromJson(Map<String, dynamic> json) {
    return DnpHomeRolledDataModel(
      jGoMMMJ: json['jGoMMMJ'] as String?,
      ya4sXiI: json['Ya4sXiI'] as String?,
      f9Sxo: json['1f9Sxo'] as String?,
      lK2nM94S9: json['lK2nM94S9'] as String?,
      hCGnojv: json['HCGnojv'] as String?,
      here: json['here'] as int?,
      maxAmount: json['max_amount'] as String?,
      minAmount: json['min_amount'] as String?,
      terms: json['terms'] != null 
          ? List<String>.from(json['terms'].map((x) => x.toString())) 
          : null,
      yeared: json['yeared'] as int?,
      loanMode: json['loan_mode'] as int?,
      objects: json['objects'] as String?,
      belated: json['belated'] as String?,
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'jGoMMMJ': jGoMMMJ,
      'Ya4sXiI': ya4sXiI,
      '1f9Sxo': f9Sxo,
      'lK2nM94S9': lK2nM94S9,
      'HCGnojv': hCGnojv,
      'here': here,
      'max_amount': maxAmount,
      'min_amount': minAmount,
      'terms': terms,
      'yeared': yeared,
      'loan_mode': loanMode,
      'objects': objects,
      'belated': belated,
    };
  }
}